﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSpace.Workflow.DriveEvents
{
    public class Countersign : IWorkflowDriveEvent
    {
        public WorkflowDriveRecord Drive(
            WorkflowInstance instance, 
            WorkflowMetadata workflow, 
            ActivityMetadata activity, 
            EventMetadata @event,
            WorkflowDriveRecord currentRecord,
            Guid dataId,
            Core.User sender,
            IEnumerable<Guid> receivers)
        {
            return null;
            //newDriveRecord = new List<WorkflowDriveRecord>();
            //foreach (var item in receivers)
            //{
            //    WorkflowDriveRecord driveRecord = new WorkflowDriveRecord();
            //    driveRecord.Id = Guid.NewGuid();
            //    driveRecord.InstanceId = instance.Id;
            //    driveRecord.WorkflowId = instance.WorkflowId;
            //    driveRecord.ActivityId = @event.ToActivityId;
            //    driveRecord.SenderId = sender.Id;
            //    driveRecord.ReceiverId = item.Id;
            //    driveRecord.ReceiverType = WfReceiverType.Department;
            //    driveRecord.DrivedDate = DateTime.Now;
            //    driveRecord.RecordId = dataId;
            //    driveRecord.IsActivated = true;
            //    newDriveRecord.Add(driveRecord);
            //}
        }
    }
}
